(function() {
	var myApp = angular.module('myApp');

	myApp.constant("myTableOption", {
		dom: "<'row'<'col-sm-12'f>>" +
		     "<'row'<'col-sm-12'tr>>" +
		     "<'row'<'col-sm-1'l>>"+
		     "<'row'<'col-sm-1'i><'col-sm-11'p>>",
		//加入显示几项数据条数的控件
		lengthMenu: [
			[6, 25, 50, -1],
			[6, 25, 50, "全部"]
		],
		lengthChange: true,

		keys: true,
		rowReorder: true,
		processing: true, //是否显示处理状态
		serverSide: true, //是否开启服务器模式
		deferRender: true, //控制Datatables的延迟渲染，可以提高初始化的速度
		paging: true, //是否开启本地分页
		pagingType: "full_numbers", //分页按钮显示选项
		pageLength: 10,  //每页显示的条目数
		scrollY: '100%', //设置垂直滚动
		//scroller   : true,  //设置滚动条
		select: true,
		searchDelay: 1000, //设定搜索的间隔时间
		language: {
			url: '../../pub/datatables/zh_cn.json'
		},
		columns: [
//			{ data: 'sending_comp'},
			{ data: 'remind_class'},
			{ data: 'remind_title'},
			{ data: 'remind_solution'},
			{ data: 'send_date' ,"searchable": false},
			{ data: 'if_read',"searchable": false,},
			{ render: function(data, type, row, meta) {
				return '<a class="btn btn-primary btn-xs" ng-click="refreshTable()" onclick="window.open(\'option/tixing.html?id='+row.id+'\',\'_blank\',\'scrollbars=no,top=100,left=100,resizable=0,width=400,height=200\');return    false" >查看</a>'
				}
		    }
		]

	});

})();

